      <div class="templatemo-content-wrapper">
        <div class="templatemo-content">
          <ol class="breadcrumb">
            <li><a href="<?=site_url()?>/cost/index">成本分析</a></li>
            <li class="active">查看销售量</li>
          </ol>
          <div class="row">
            <div class="col-md-12">
              <div class="table-responsive">
                <h4 class="margin-bottom-15">商品销售量列表</h4>
                <table class="table table-striped table-hover table-bordered">
                  <thead>
                    <tr>
                      <th>商品名称</th>
                      <th>销售量</th>
                      <th>进货价</th>
                      <th>库存</th>        
                    </tr>
                  </thead>
                  <tbody>
                  	<?php foreach ($products as $item):?>
                    <tr>
                      <td><?php echo $item['name'].'-'.$item['description'];?></td>
                      <td><?php echo $item['amount'];?></td>
                      <td><?php echo $item['purprice'].'元/'.$item['unit'];?></td>
                      <td><?php echo $item['stock'];?></td>
                    </tr>
                     <?php endforeach;?>
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
      </div>